package com.java.s3;
import org.openjdk.jol.info.ClassLayout;
/**
 * 锁
 */
public class JustTest {//JOL= java object layout
    public static void main(String[] args) {
        Object obj =new Object();
        System.out.println(ClassLayout.parseInstance(obj).toPrintable());
        synchronized (obj){
            System.out.println(ClassLayout.parseInstance(obj).toPrintable());
        }
    }
}
